package com.xuxin.pda.listener;

import android.view.View;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.ActivityUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListener;
import com.xuxin.pda.video.VideoActivity;
import com.xuxin.pda.video.VideoListActivity;

/**
 * Created by xu_xin
 * Created on 2020.08.07 0007
 */
public class MainListener implements OnItemClickListener {
    @Override
    public void onItemClick(@NonNull BaseQuickAdapter<?, ?> adapter, @NonNull View view, int position) {
        switch (position) {
            case 0:
                ActivityUtils.startActivity(VideoActivity.class);
                break;
            case 1:
                ActivityUtils.startActivity(VideoListActivity.class);
                break;
        }
    }
}